//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_addkillsai.sqf"
#include "x_setup.sqf"

private ["_points","_killer","_lead"];
PARAMS_2(_points,_killer);
_lead = leader _killer;
if (!isPlayer _killer && {side (group _killer) != GVAR(side_enemy)} && {!isNull _lead} && {isPlayer _lead}) then {
	_lead addScore _points;
};